<?php

namespace app\home\services;

use app\common\loader\ModelMerchant;
use think\Exception;
use think\facade\Db;

/**
 * 商户管理
 */
class MerchantService extends BaseService
{

    /**
     * 商户信息
     * @param  $mer_id |商户id
     * @return array|mixed|Db|\think\Model
     * @throws Exception
     */
    public function getUserInfo($mer_id)
    {
        $where = ['mer_id' => $mer_id, 'status' => 1];
        $field = ['mer_id', 'company_name', 'pic', 'content', 'restrict_location', 'distance'];
        return ModelMerchant::MerchantInfo()->getUserInfo($where, $field);
    }


}
